package org.budo.cmbc.sdk.entity;

import java.io.Serializable;

import org.budo.xml.XmlObject;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

/**
 * @author lmw
 */
@Getter
@Setter
@NoArgsConstructor
@ToString
public class BalInfo implements Serializable {
    private static final long serialVersionUID = 5070698425639557157L;

    private String acntNo;

    private String acntName;

    private String balance;

    public BalInfo(XmlObject xml) {
        this.setAcntNo(xml.getChildNodeTextContentByName("acntNo"));
        this.setAcntName(xml.getChildNodeTextContentByName("acntName"));
        this.setBalance(xml.getChildNodeTextContentByName("balance"));
    }
}